import { createRouter, createWebHistory } from 'vue-router'
// 导入路由级别的组件
import BigScreenView from '@/views/caas-big-screen.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      redirect:'/big-index/page3'
    },
    // 微服务需要定义一个默认首页并重定向到大屏页面（唯一地址）
    {
      path: '/big-index',
      component: BigScreenView,
      children:[
        {
          path:'page1',
          name:"页面1",
          component:()=> import('@/views/page1/index.vue')
        },
        {
          path:'page2',
          name:"页面2",
          component:()=> import('@/views/page2/index.vue')
        },
        {
          path:'page3',
          name:"页面3",
          component:()=> import('@/views/page3/index.vue')
        },
        {
          path:'page4',
          name:"页面4",
          component:()=> import('@/views/page4/index.vue')
        },
        {
          path:'page5',
          name:"页面5",
          component:()=> import('@/views/page5/index.vue')
        },
      ]
    },
  ]
})

export default router
